<script setup lang="ts">
let {banlist}=defineProps(['banlist'])
</script>
<template>
    <div>

        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#F66">
            <van-swipe-item v-for="item in banlist" :key="item.bannerid">
                <img :src="item.img" alt="">
            </van-swipe-item>
        </van-swipe>
    </div>
</template>
<style lang="scss" scoped>
.my-swipe {
  height: 2rem;
  line-height: 2rem;
  width: 100%;

  img {
    width: 100%;
    height: 100%;
  }

}

</style>